package response

import (
	"time"
)

type ResultEntry struct {
	Timestamp time.Time `json:"timestamp"`
	Value     float64   `json:"value"`
}

// TimeSeriesResponse 时间序列响应体
type TimeSeriesResponse struct {
	Start    time.Time `json:"start"`
	End      time.Time `json:"end"`
	Interval string    `json:"interval"`
	Series   []Series  `json:"series"`
}

type Series struct {
	Label string        `json:"label"`
	Data  []ResultEntry `json:"data"`
}

type GPUModelCount struct {
	ModelName string  `json:"modelName"`
	Count     int     `json:"count"`
	Percent   float32 `json:"percent,omitempty"`
}

type CountRatio struct {
	Count int     `json:"count"`
	Ratio float64 `json:"ratio"`
}

type IDC struct {
	IDCName  string   `json:"idcName"`
	Clusters []string `json:"clusters"`
}
